﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Back-end.Master" AutoEventWireup="true" CodeBehind="QuanLyChuDe.aspx.cs" Inherits="TracNghiemTinHocDaiCuong.QuanLyChuDe" %>
<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
    <div class="chuDe">
        <div>
            <asp:Button ID="btnThemChuDe" runat="server" Text="Thêm" OnClick="btnThemChuDe_Click"/>&nbsp&nbsp
            <asp:Button ID="btnSuaChuDe" runat="server" Text="Sửa" OnClick="btnSuaChuDe_Click"/>&nbsp&nbsp
            <asp:Button ID="btnXoaChuDe" runat="server" Text="Xóa" OnClick="btnXoaChuDe_Click"
            OnClientClick="return confirm('Bạn có muốn xóa chủ đề này?');"/>&nbsp&nbsp
        </div>
        <div class="gvChuDe">
            <asp:GridView ID="gvChuDe" runat="server" AutoGenerateColumns="False" Width="100%"
                BackColor="White" BorderColor="#3366CC" BorderStyle="None" BorderWidth="1px" 
                CellPadding="4" SelectedRowStyle-BackColor="Blue">
                <Columns>
                    <asp:BoundField HeaderText="Tên chủ đề" DataField="TenCD"/>
                    <asp:BoundField HeaderText="Nội dung" DataField="GhiChu"/>
                    <asp:TemplateField HeaderText="Chọn">
                        <ItemTemplate>
                            <asp:LinkButton ID="lkbtnChuDe" runat="server" ForeColor="Blue" CommandName='<%# Eval("MaCD") %>'
                            OnCommand="lkbtnChuDe_Click">Chọn</asp:LinkButton>
                        </ItemTemplate>
                    </asp:TemplateField>
                </Columns>
                <FooterStyle BackColor="#99CCCC" ForeColor="#003399" />
                <HeaderStyle BackColor="#003399" Font-Bold="True" ForeColor="#CCCCFF" />
                <PagerStyle BackColor="#99CCCC" ForeColor="#003399" HorizontalAlign="Left" />
                <RowStyle BackColor="White" ForeColor="#003399" />
                <SelectedRowStyle BackColor="#009999" Font-Bold="True" ForeColor="#CCFF99" />
                <SortedAscendingCellStyle BackColor="#EDF6F6" />
                <SortedAscendingHeaderStyle BackColor="#0D4AC4" />
                <SortedDescendingCellStyle BackColor="#D6DFDF" />
                <SortedDescendingHeaderStyle BackColor="#002876" />
            </asp:GridView>
        </div>
    </div>
</asp:Content>
